using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class webadmin_pages_ajax_ntd : System.Web.UI.Page
{
    public string id = "",page="";
    Common comm = new Common();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Params["idntv"] != null)
        {
            id = comm.TextFormat(Request.Params["idntv"].ToString());
            Session.Add("id_ntv", id);
        }
        if (Request.Params["idhoso"] != null)
        {
            id = comm.TextFormat(Request.Params["idhoso"].ToString());
            Session.Add("id_hoso", id);
        }
        if (Request.Params["idhosotuyendung"] != null)
        {
            id = comm.TextFormat(Request.Params["idhosotuyendung"].ToString());
            Session.Add("id_hosotuyendung", id);
        }
        if (Request.Params["dnuser"] != null)
        {
            id = comm.TextFormat(Request.Params["dnuser"].ToString());
            Session.Add("dn_user", id);
        }
        if (Request.Params["page"] != null)
        {
            page = comm.TextFormat(Request.Params["page"].ToString());
        }
        ContentPlaceHolder1.Controls.Add(new UserControl().LoadControl("~/webadmin/controls/"+page+".ascx"));
    }
}
